<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver MPU9250: mpu9250 interface driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver MPU9250
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">MPU9250 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__mpu9250__interface__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mpu9250 interface driver function<div class="ingroups"><a class="el" href="group__mpu9250__driver.html">mpu9250 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>mpu9250 interface driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga828c29c3c4bcabab8f2d5a46e258b032"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga828c29c3c4bcabab8f2d5a46e258b032">mpu9250_interface_iic_init</a> (void)</td></tr>
<tr class="memdesc:ga828c29c3c4bcabab8f2d5a46e258b032"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface iic bus init  <a href="group__mpu9250__interface__driver.html#ga828c29c3c4bcabab8f2d5a46e258b032">More...</a><br /></td></tr>
<tr class="separator:ga828c29c3c4bcabab8f2d5a46e258b032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga38f8367930b9d4f6c91f007692b57db6"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga38f8367930b9d4f6c91f007692b57db6">mpu9250_interface_iic_deinit</a> (void)</td></tr>
<tr class="memdesc:ga38f8367930b9d4f6c91f007692b57db6"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface iic bus deinit  <a href="group__mpu9250__interface__driver.html#ga38f8367930b9d4f6c91f007692b57db6">More...</a><br /></td></tr>
<tr class="separator:ga38f8367930b9d4f6c91f007692b57db6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47c6b7d290af5eab7566beec22f31d35"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga47c6b7d290af5eab7566beec22f31d35">mpu9250_interface_iic_read</a> (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga47c6b7d290af5eab7566beec22f31d35"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface iic bus read  <a href="group__mpu9250__interface__driver.html#ga47c6b7d290af5eab7566beec22f31d35">More...</a><br /></td></tr>
<tr class="separator:ga47c6b7d290af5eab7566beec22f31d35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c0ed7f7f0e8efcdb377e6d9565bd623"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga3c0ed7f7f0e8efcdb377e6d9565bd623">mpu9250_interface_iic_write</a> (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga3c0ed7f7f0e8efcdb377e6d9565bd623"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface iic bus write  <a href="group__mpu9250__interface__driver.html#ga3c0ed7f7f0e8efcdb377e6d9565bd623">More...</a><br /></td></tr>
<tr class="separator:ga3c0ed7f7f0e8efcdb377e6d9565bd623"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb4c6312df6cbca9d0dbd20f7669298c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#gabb4c6312df6cbca9d0dbd20f7669298c">mpu9250_interface_spi_init</a> (void)</td></tr>
<tr class="memdesc:gabb4c6312df6cbca9d0dbd20f7669298c"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface spi bus init  <a href="group__mpu9250__interface__driver.html#gabb4c6312df6cbca9d0dbd20f7669298c">More...</a><br /></td></tr>
<tr class="separator:gabb4c6312df6cbca9d0dbd20f7669298c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafecbef2fc236dbed7fe843f3dfbfe196"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#gafecbef2fc236dbed7fe843f3dfbfe196">mpu9250_interface_spi_deinit</a> (void)</td></tr>
<tr class="memdesc:gafecbef2fc236dbed7fe843f3dfbfe196"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface spi bus deinit  <a href="group__mpu9250__interface__driver.html#gafecbef2fc236dbed7fe843f3dfbfe196">More...</a><br /></td></tr>
<tr class="separator:gafecbef2fc236dbed7fe843f3dfbfe196"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga983341ffd2fc96fbf7baf5aabbf841d5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga983341ffd2fc96fbf7baf5aabbf841d5">mpu9250_interface_spi_read</a> (uint8_t reg, uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga983341ffd2fc96fbf7baf5aabbf841d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface spi bus read  <a href="group__mpu9250__interface__driver.html#ga983341ffd2fc96fbf7baf5aabbf841d5">More...</a><br /></td></tr>
<tr class="separator:ga983341ffd2fc96fbf7baf5aabbf841d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2510774a0a51efa0ef71e6b66c128924"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga2510774a0a51efa0ef71e6b66c128924">mpu9250_interface_spi_write</a> (uint8_t reg, uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga2510774a0a51efa0ef71e6b66c128924"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface spi bus write  <a href="group__mpu9250__interface__driver.html#ga2510774a0a51efa0ef71e6b66c128924">More...</a><br /></td></tr>
<tr class="separator:ga2510774a0a51efa0ef71e6b66c128924"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf19d808d558d778f688b5a286d383ec4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#gaf19d808d558d778f688b5a286d383ec4">mpu9250_interface_delay_ms</a> (uint32_t ms)</td></tr>
<tr class="memdesc:gaf19d808d558d778f688b5a286d383ec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface delay ms  <a href="group__mpu9250__interface__driver.html#gaf19d808d558d778f688b5a286d383ec4">More...</a><br /></td></tr>
<tr class="separator:gaf19d808d558d778f688b5a286d383ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15e531f463207b6917de60a4e3354ddd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a> (const char *const fmt,...)</td></tr>
<tr class="memdesc:ga15e531f463207b6917de60a4e3354ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface print format data  <a href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">More...</a><br /></td></tr>
<tr class="separator:ga15e531f463207b6917de60a4e3354ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae1fdc87b6d705116bbd45cb8c4301ac5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#gae1fdc87b6d705116bbd45cb8c4301ac5">mpu9250_interface_receive_callback</a> (uint8_t type)</td></tr>
<tr class="memdesc:gae1fdc87b6d705116bbd45cb8c4301ac5"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface receive callback  <a href="group__mpu9250__interface__driver.html#gae1fdc87b6d705116bbd45cb8c4301ac5">More...</a><br /></td></tr>
<tr class="separator:gae1fdc87b6d705116bbd45cb8c4301ac5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f1b6a2b8483ea3f713465a87190fad1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga1f1b6a2b8483ea3f713465a87190fad1">mpu9250_interface_dmp_tap_callback</a> (uint8_t count, uint8_t direction)</td></tr>
<tr class="memdesc:ga1f1b6a2b8483ea3f713465a87190fad1"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface dmp tap callback  <a href="group__mpu9250__interface__driver.html#ga1f1b6a2b8483ea3f713465a87190fad1">More...</a><br /></td></tr>
<tr class="separator:ga1f1b6a2b8483ea3f713465a87190fad1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga103f34f973f1e0a49fb8c1eeb08f6f3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mpu9250__interface__driver.html#ga103f34f973f1e0a49fb8c1eeb08f6f3d">mpu9250_interface_dmp_orient_callback</a> (uint8_t orientation)</td></tr>
<tr class="memdesc:ga103f34f973f1e0a49fb8c1eeb08f6f3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface dmp orient callback  <a href="group__mpu9250__interface__driver.html#ga103f34f973f1e0a49fb8c1eeb08f6f3d">More...</a><br /></td></tr>
<tr class="separator:ga103f34f973f1e0a49fb8c1eeb08f6f3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>mpu9250 interface driver modules </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga15e531f463207b6917de60a4e3354ddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga15e531f463207b6917de60a4e3354ddd">&#9670;&nbsp;</a></span>mpu9250_interface_debug_print()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpu9250_interface_debug_print </td>
          <td>(</td>
          <td class="paramtype">const char *const&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface print format data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>format data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00164">164</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="gaf19d808d558d778f688b5a286d383ec4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf19d808d558d778f688b5a286d383ec4">&#9670;&nbsp;</a></span>mpu9250_interface_delay_ms()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpu9250_interface_delay_ms </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ms</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface delay ms </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ms</td><td>time </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00154">154</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga103f34f973f1e0a49fb8c1eeb08f6f3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga103f34f973f1e0a49fb8c1eeb08f6f3d">&#9670;&nbsp;</a></span>mpu9250_interface_dmp_orient_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpu9250_interface_dmp_orient_callback </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface dmp orient callback </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">orientation</td><td>dmp orientation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00277">277</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga1f1b6a2b8483ea3f713465a87190fad1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1f1b6a2b8483ea3f713465a87190fad1">&#9670;&nbsp;</a></span>mpu9250_interface_dmp_tap_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpu9250_interface_dmp_tap_callback </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface dmp tap callback </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>tap count </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">direction</td><td>tap direction </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00223">223</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga38f8367930b9d4f6c91f007692b57db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga38f8367930b9d4f6c91f007692b57db6">&#9670;&nbsp;</a></span>mpu9250_interface_iic_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_iic_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface iic bus deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 iic deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00058">58</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga828c29c3c4bcabab8f2d5a46e258b032"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga828c29c3c4bcabab8f2d5a46e258b032">&#9670;&nbsp;</a></span>mpu9250_interface_iic_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_iic_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface iic bus init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 iic init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00046">46</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga47c6b7d290af5eab7566beec22f31d35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47c6b7d290af5eab7566beec22f31d35">&#9670;&nbsp;</a></span>mpu9250_interface_iic_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_iic_read </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface iic bus read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>iic device write address </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>iic register address </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*buf</td><td>pointer to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of the data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00074">74</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga3c0ed7f7f0e8efcdb377e6d9565bd623"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c0ed7f7f0e8efcdb377e6d9565bd623">&#9670;&nbsp;</a></span>mpu9250_interface_iic_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_iic_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface iic bus write </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>iic device write address </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>iic register address </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*buf</td><td>pointer to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of the data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00090">90</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="gae1fdc87b6d705116bbd45cb8c4301ac5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae1fdc87b6d705116bbd45cb8c4301ac5">&#9670;&nbsp;</a></span>mpu9250_interface_receive_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpu9250_interface_receive_callback </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface receive callback </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>irq type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00174">174</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="gafecbef2fc236dbed7fe843f3dfbfe196"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafecbef2fc236dbed7fe843f3dfbfe196">&#9670;&nbsp;</a></span>mpu9250_interface_spi_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_spi_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface spi bus deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 spi deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00114">114</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="gabb4c6312df6cbca9d0dbd20f7669298c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabb4c6312df6cbca9d0dbd20f7669298c">&#9670;&nbsp;</a></span>mpu9250_interface_spi_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_spi_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface spi bus init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 spi init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00102">102</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga983341ffd2fc96fbf7baf5aabbf841d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga983341ffd2fc96fbf7baf5aabbf841d5">&#9670;&nbsp;</a></span>mpu9250_interface_spi_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_spi_read </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface spi bus read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>register address </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*buf</td><td>pointer to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00129">129</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
<a id="ga2510774a0a51efa0ef71e6b66c128924"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2510774a0a51efa0ef71e6b66c128924">&#9670;&nbsp;</a></span>mpu9250_interface_spi_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t mpu9250_interface_spi_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface spi bus write </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>register address </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*buf</td><td>pointer to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__mpu9250__interface__template_8c_source.html#l00144">144</a> of file <a class="el" href="driver__mpu9250__interface__template_8c_source.html">driver_mpu9250_interface_template.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
